package IC.Context;

/**
 * Created by IntelliJ IDEA.
 * User: nimrod
 * Date: 10/01/12
 * Time: 12:30
 * To change this template use File | Settings | File Templates.
 */
public class ContextError {
    protected String msg;
    protected int line;

    public ContextError(String msg, int line) {
        this.msg = msg;
        this.line = line;
    }

    public String getMsg() {
        return msg;
    }

    public int getLine() {
        return line;
    }

    @Override
    public String toString() {
        return "semantic error at line " + this.line + ": " + this.msg;
    }
}
